<template>
  <router-view ></router-view>
</template>

<script setup>
import {onMounted, onUnmounted} from 'vue'
import managerInfo from './store/managerInfo';
import emitter from '@/utils/eventBus';


const manager = managerInfo()

onMounted(()=>{
  emitter.on('TOKEN_SET',(opt)=>{
    manager.refresh()

    // setTimeout(() => {
    // console.log('manager id ==', manager.id)
      
    // }, 100);
  })
})

onUnmounted(()=>{
  emitter.off('TOKEN_SET')
})

</script>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
